package com.gxar.quick.ar.server.base.model.protocol.editor.web;


import com.gxar.quick.ar.server.base.model.protocol.common.CommonArItemTextModel;
import lombok.Data;

/**
 * Web编辑器AR文本信息
 *
 * @author zxh
 * @version 1.0
 * @created 2024/01/02.
 */
@Data
public class WebEditorArItemTextModel {

    private String text;

    private String content;

    private Double fontSize;

    private String fontStyle;

    private String url;

    private Double width;

    private Double height;

    public CommonArItemTextModel toCommonModel() {
        CommonArItemTextModel outputModel = new CommonArItemTextModel();

        outputModel.setText(text);
        outputModel.setContent(content);
        outputModel.setFontSize(fontSize);
        outputModel.setFontStyle(fontStyle);
        outputModel.setLinkUrl(url);
        outputModel.setWidth(width);
        outputModel.setHeight(height);

        return outputModel;
    }
}
